﻿package bipede.animation
{
	import events.MoveEvent;
	import flash.display.DisplayObject;
	import flash.events.*;
	import bipede.membres.Person;
	
	public class SceneManager
	{
		static private var items:Vector.<DisplayObject> = new Vector.<DisplayObject>();
		
		public function SceneManager()
		{
		}
		static public function show( pose:Pose, anim:Boolean=false ):void
		{
			for each ( var item in items ) if ( item is Person ) (item as Person).positionne( pose, 12 );
		}		
		static public function register( item:DisplayObject ):void
		{
			items.push( item );
			item.addEventListener( MoveEvent.FINFRAME, Timeline.nextframe );
		}
	}
}